let path = require('path')

let p1 = 'E:\\Golang\\itcast\\第7阶段 区块链与智能合约开发'

let p2 = 'E:\\Golang\\itcast\\++\\第7阶段 ..区块链与智能合约开发'
console.log(path.basename(p1))
console.log(path.dirname(p1))
console.log(path.extname(p1))
console.log(path.join('E:\\Golang','xxxx','yy','06-require.js'))
console.log(path.normalize(p2))
console.log(path.resolve('06-require.js'))